package cn.zl.ymcc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 登录表
 * </p>
 *
 * @author zl
 * @since 2025-10-18
 */
    @Getter
    @Setter
    @ToString
    @Accessors(chain = true)
    @TableName("t_login")
        public class Login implements Serializable {

        private static final long serialVersionUID = 1L;
    
                        @TableId(value = "id", type = IdType.AUTO)
                private Long id;

        @TableField("username")
    private String username;

        @TableField("password")
    private String password;

            /**
             * 0是后台，1是前台
             */
        @TableField("type")
    private Boolean type;

        @TableField("enabled")
    private Boolean enabled;

        @TableField("account_non_expired")
    private Boolean accountNonExpired;

        @TableField("credentials_non_expired")
    private Boolean credentialsNonExpired;

        @TableField("account_non_locked")
    private Boolean accountNonLocked;

            /**
             * 对应Oauth2客户端详情ID
             */
        @TableField("client_id")
    private String clientId;

        @TableField("client_secret")
    private String clientSecret;

        @TableField("avatar")
    private String avatar;
    }